-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Add extra WASM heap pages when precompiling the runtime blob #11107
Add extra WASM heap pages when precompiling the runtime blob #11107
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the rustdoc, LGTM
I was too fast. You fixed the rustdoc while I was reviewing 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is incorrect. Maybe it was already incorrect before, but the heap pages should be the maximum. So, if polkadot it setting these for parachains it is 1gb and nothing in the wasm file should allow to exceed this value. Currently the wasm file could specify whatever initial value it wants and it would get this plus the heap pages we are requesting by polkadot?
For normal runtimes this isn't such a big problem, as they are not provided by the user.
This is indeed how it worked originally, I just changed the name of the field to actually say what it does. We can consider changing it, and I agree with you that changing this would make sense (which is what I wrote in this comment), but I think that'd be better for another PR as this just restores the original behavior from before the #10480 landed.
Yes, the blob can request whatever value it wants, and it will get that amount of heap pages plus the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, sounds good.
…ech#11107) * Add extra WASM heap pages when precompiling the runtime blob * Fix compilation * Fix rustdoc * Fix rustdoc for real this time * Fix benches compilation * Improve the builder in `sc-executor-wasmtime`'s tests
…ech#11107) * Add extra WASM heap pages when precompiling the runtime blob * Fix compilation * Fix rustdoc * Fix rustdoc for real this time * Fix benches compilation * Improve the builder in `sc-executor-wasmtime`'s tests
…ech#11107) * Add extra WASM heap pages when precompiling the runtime blob * Fix compilation * Fix rustdoc * Fix rustdoc for real this time * Fix benches compilation * Improve the builder in `sc-executor-wasmtime`'s tests
…ech#11107) * Add extra WASM heap pages when precompiling the runtime blob * Fix compilation * Fix rustdoc * Fix rustdoc for real this time * Fix benches compilation * Improve the builder in `sc-executor-wasmtime`'s tests
…ech#11107) * Add extra WASM heap pages when precompiling the runtime blob * Fix compilation * Fix rustdoc * Fix rustdoc for real this time * Fix benches compilation * Improve the builder in `sc-executor-wasmtime`'s tests
polkadot companion: paritytech/polkadot#5197
Fixes paritytech/polkadot#5190